

class BaseModel<T> {
  BaseModel({num? code, String? message, T? data}) {
    _code = code;
    _message = message;
    _data = data;
  }

  BaseModel.fromJson(dynamic json) {
    _code = json['code'];
    _message = json['message'];
    _data = json['data'] != null ? json['data'] as T : null;
  }
  num? _code;
  String? _message;
  T? _data;

  num? get code => _code;
  String? get message => _message;
  T? get data => _data;

}